﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;

namespace VideoRentalShop.View.Templates
{
    public class StepPanelContent : UserControl
    {
        protected dynamic _item;
        public virtual dynamic Item
        {
            get
            {
                return _item;
            }
            set
            {
                _item = value;
                if (_item != null)
                {
                    RefreshForm();
                }
                else
                {
                    ClearForm();
                }
            }
        }


        public virtual void UpdateItem() { }

        public virtual void RefreshForm() { }

        public virtual void ClearForm() { }

        public virtual bool ValidateForm() { return true; }
    }
}
